package com.gln.bloger.pojos;

import java.util.ArrayList;
import java.util.List;

/**
 * the configuration of this web site
 * @author Nicholas ren
 *
 */
public class SiteConfig {		
	private String name;
	
	private String subName;
	
	private String simpleAbout;
	
	private String siteURL;
	
	private String appVersion;

	private String siteAbout;
	
	private String ICPNumber;
	
	private List<String> themes = new ArrayList<String>();
	
	public List<String> getThemes() {
		return themes;
	}

	public void setThemes(List<String> themes) {
		this.themes = themes;
	}
	/**
	 * add theme
	 * @param theme
	 */
	public void addTheme(String theme){
		this.themes.add(theme);
	}

	public String getSimpleAbout() {
		return simpleAbout;
	}

	public void setSimpleAbout(String simpleAbout) {
		this.simpleAbout = simpleAbout;
	}

	public String getAppVersion() {
		return appVersion;
	}

	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}

	public String getSiteAbout() {
		return siteAbout;
	}

	public void setSiteAbout(String siteAbout) {
		this.siteAbout = siteAbout;
	}

	public String getSiteURL() {
		return siteURL;
	}

	public void setSiteURL(String siteURL) {
		this.siteURL = siteURL;
	}

	public String getICPNumber() {
		return ICPNumber;
	}

	public void setICPNumber(String number) {
		ICPNumber = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSubName() {
		return subName;
	}

	public void setSubName(String subName) {
		this.subName = subName;
	}
	
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("name :").append(name).append("\n");
		sb.append("subName :").append(subName).append("\n");
		sb.append("simpleAbout :").append(simpleAbout).append("\n");
		sb.append("siteURL :").append(siteURL).append("\n");
		sb.append("appVersion :").append(appVersion).append("\n");
		sb.append("siteAbout :").append(siteAbout).append("\n");
		sb.append("ICPNumber :").append(ICPNumber).append("\n");
		if(null != themes){
			sb.append("themes {");
			for(String s : themes){
				sb.append(s).append(",");
			}
			sb.append("}");
		}
		return sb.toString();
	}
}
